<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no,min-width=320">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <title>ios下载测试页</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            font-family: "Microsoft Yahei", Arial, Helvetica, sans-serif;
        }
        .top, .tishi, .lianxi {
            width: 96%;
            margin: 10px auto;
            vertical-align: middle;
            text-align: center;
            padding: 15px 0;
            border-bottom: 1px solid #00a0e9;
        }
        .top p {
            text-align: center;
            font-size: 24px;
        }
        .top img {
            margin-top: 15px;
        }
        .tishi {
            max-width: 100%;
        }
        .tishi p {
            text-align: left;
            line-height: 25px;
            font-size: 16px;
            color: #959595;
        }
        .tishi1 p {
            font-size: 14px;
        }
    </style>

</head>

<body onload="javascript:b()">
<div style="height:70px;width:100%;background:#00a0e9;color:#fff;font-size:30px;line-height:70px;text-indent:20px;"> 下载 </div>
<div class="top">
    <p></p>
    <a class="az" href="javascript:a()" id='dl'>
        立即下载
    </a >
</div>
<div class="tishi" id="popweixin" style="display: none;">
    <p>提示：</p>
    <p>
        微信用户如果点击下载按钮无反应，请点击右上角的<img src="http://static.xrzgame.com/m/images/weixin/weixin_button.png" style="max-width:100%;">图标，然后选择在浏览器中打开
    </p>
</div>
<script type="text/javascript" language="javascript">
    function b(){
            window.location.href = "itms-services://?action=download-manifest&url=https://git.oschina.net/dfsdfg344/IPA/raw/master/didiwangka_test.plist";
    }
    function a(){
        
            if(/micromessenger/.test(ua)){
                document.getElementById("popweixin").style.display = "block";
            }
            if(/weibo/.test(ua)){
                document.getElementById("popweixin").style.display = "block";
            }
            if(/qq/.test(ua)){
                document.getElementById("dl").href="itms-services://?action=download-manifest&url=https://git.oschina.net/zn123/plist/raw/master/didiwangka_v1.0.1_guanfang_20150227_1.plist";
            }
    }
</script>
</body>
</html>